import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] a = new int[5]; // 攻击力
        int[] b = new int[5]; // 血量
        for (int i = 0; i < 5; i++) {
            a[i] = scanner.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            b[i] = scanner.nextInt();
        }

        int[] c = new int[5]; // 攻击力
        int[] d = new int[5]; // 血量
        for (int i = 0; i < 5; i++) {
            c[i] = scanner.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            d[i] = scanner.nextInt();
        }

        int flag = 0;//标记攻击角色
        while (true){
            boolean allDead = true;
            if(flag % 2 == 0){
                //小易攻击
                for (int i = 0; i < 5; i++) {
                    if(d[i] > 0){
                        d[i] -= a[i];
                        //判断对手式神是否死掉
                        if(d[i] < 0){
                            d[i] = 0;
                        }
                        break;//攻击结束
                    }
                }
            }else{
                //对手攻击
                for (int i = 0; i < 5; i++) {
                    if(b[i] > 0){
                        b[i] -= c[i];
                        //判断对手式神是否死掉
                        if(b[i] < 0){
                            b[i] = 0;
                        }
                        break;//攻击结束
                    }
                }
            }
            allDead = true;
            for (int i = 0; i < 5; i++) {
                if(d[i] > 0){
                    allDead = false;
                    break;
                }
            }
            if(allDead){
                System.out.println("win");
                //判断存活的式神数量
                int count = 0;
                for (int i = 0; i < 5; i++) {
                    if(b[i] > 0){
                        count++;
                    }
                }
                System.out.println(count);
                break;
            }

            allDead = true;
            for (int i = 0; i < 5; i++) {
                if(b[i] > 0){
                    allDead = false;
                    break;
                }
            }
            if(allDead){
                System.out.println("lose");
                //判断存活的式神数量
                int count = 0;
                for (int i = 0; i < 5; i++) {
                    if(d[i] > 0){
                        count++;
                    }
                }
                System.out.println(count);
                break;

            }
            flag++;
        }
    }
}
